Skip to content

feat: markdown editor#1002

Merged
AbhishekA1509 merged 4 commits into
feat/day-pickerfrom
feat/markdown-editor
Feb 4, 2026
Merged

feat: markdown editor#1002
AbhishekA1509 merged 4 commits into
feat/day-pickerfrom
feat/markdown-editor

Conversation

@AbhishekA1509

@AbhishekA1509 AbhishekA1509 commented Jan 13, 2026

Copy link
Copy Markdown
Member

Description

This pull request migrates the markdown editor in GenericDescription from react-mde to @uiw/react-md-editor, modernizing the editing experience and simplifying the code. It also introduces a custom toolbar with icon-based commands and improves the structure and maintainability of related constants.

Markdown Editor Migration and UI Improvements:

  • Replaced the react-mde markdown editor with @uiw/react-md-editor in GenericDescription.tsx, resulting in a more modern editor experience and a simplified component structure. The state management and toolbar logic were refactored accordingly. [1] [2] [3] [4] [5] [6] [7]

Toolbar Customization and Iconography:

  • Introduced a new set of toolbar commands with custom SVG icons for markdown formatting actions by creating the TOOLBAR_SECONDARY_COMMANDS constant, and integrated these into the editor toolbar.

Code Organization and Cleanup:

  • Moved and enhanced markdown editor-related constants and icons from the old constant.ts to a new constant.tsx file, improving maintainability and aligning with the new editor implementation. [1] [2]

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

Copilot AI review requested due to automatic review settings January 13, 2026 07:36
@AbhishekA1509 AbhishekA1509 self-assigned this Jan 13, 2026
@AbhishekA1509 AbhishekA1509 marked this pull request as draft January 13, 2026 07:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request migrates the markdown editor from react-mde to @uiw/react-md-editor. The change includes removing the old markdown editor package, updating the GenericDescription component to use the new editor, removing now-unused utility functions and constants, and updating styles to work with the new editor library.

Changes:

  • Replaced react-mde package with @uiw/react-md-editor in dependencies
  • Refactored GenericDescription component to use MDEditor with custom command icons
  • Removed deprecated markdown editor utilities, constants, and type definitions
  • Updated SCSS styles for the new editor component

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
package.json Removed react-mde, added @uiw/react-md-editor
package-lock.json Updated lock file with new dependencies for the new markdown editor
GenericDescription.tsx Migrated from ReactMde to MDEditor component with new state management
genericDescription.scss Removed old editor styles, added styles for new w-md-editor component
constant.ts Deleted file - markdown editor constants no longer needed
utils.tsx Removed getEditorCustomIcon function
types.ts Removed tabIndex, minEditorHeight, and MDEditorSelectedTabType

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Common/GenericDescription/GenericDescription.tsx Outdated
Comment thread src/Common/GenericDescription/GenericDescription.tsx Outdated
Comment thread src/Common/GenericDescription/genericDescription.scss Outdated
Comment thread src/Common/GenericDescription/GenericDescription.tsx Outdated
@AbhishekA1509 AbhishekA1509 changed the title chore: add skaffold feat: markdown editor Jan 13, 2026
@AbhishekA1509 AbhishekA1509 marked this pull request as ready for review January 14, 2026 11:39
@AbhishekA1509 AbhishekA1509 merged commit 6cc5c5e into feat/day-picker Feb 4, 2026
5 checks passed
@AbhishekA1509 AbhishekA1509 deleted the feat/markdown-editor branch February 4, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants